<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"sys"
		 ,modelName:"配置"
		 ,modelFlag:"config"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/config/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	<input type="hidden" name="id" value="${data.id}">
     <div class="form-group  col-md-5">
       <label for="name" class="required-before col-sm-3 control-label no-padding-right">名称:</label>
       <div class="col-sm-9 inline-height ">
			  <input type="text" oldval="${data.name}" value="${data.name}" class="validate[required,maxSize[50]] col-xs-10" name="name" placeholder="名称" />
 	    </div> 
   </div>
  <%if(has(sysFlags) && sysFlags.~size>1){ %>
     <div class="form-group col-md-5">
	     <label class="required-before col-sm-3 control-label no-padding-right" for="instanceId">所属系统:</label>
		 <div class="col-sm-9 inline-height ">
		   <select placeholder="所属系统" name="instanceId" oldval="${data.instanceId}" class="col-xs-10">
				<% for(res in sysFlags!){ %>
				  <option value="${res.id}"
				   <%if(data.instanceId==res.id){%>
					  selected="selected"
					 <%}%>
				  >${res.nameStr}</option>
			　　   <% } %>
			</select>
	  	 </div>
	  </div>
  <%} %>
    <div class="form-group col-md-5">
	<label class="required-before col-sm-3 control-label no-padding-right" for="val">标识:</label>
	<div class="col-sm-9 inline-height">
		<input type="text"  oldval="${data.label}" value="${data.label}" name="label" placeholder="标识" 
		<%if(isEmpty(data.id)){%>
			class="validate[required,maxSize[50]] col-xs-10" />
		<%}else{%>
			readonly="readonly"  class="readonly validate[required,maxSize[50]] col-xs-10" />
		<%}%>
	  </div>
  </div>
  <div class="form-group col-md-5">
	<label class="col-sm-3 control-label no-padding-right" for="val">值:</label>
	<div class="col-sm-9 inline-height">
		<input type="text"  oldval="${data.val}" value="${data.val}" name="val" placeholder="值" class="validate[maxSize[50]] col-xs-10" />
	  </div>
  </div>
  <div class="form-group col-md-5">
     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
     <div class="col-sm-9 inline-height">
	    <input type="text"   oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
	  </div>
  </div>	
<%} %>
